package com.androidvizlab.bachelor.customcomponents.viewholder;

import com.androidvizlab.bachelor.R;

import android.view.View;
import android.widget.TextView;

/**
 * Use for displaying information about camera on the CamGroup
 * 
 * @author TheHive
 */
public class CamInfoListViewHolder extends ListViewHolder 
{
	private TextView cam = null;
	private TextView c = null;
	private TextView xh = null;
	private TextView yh = null;
	private TextView ort = null;
	private TextView f1 = null;
	private TextView f2 = null;
	private TextView p1 = null;
	private TextView p2 = null;
	
	public CamInfoListViewHolder(View view)
	{
		super(view);
		
		cam = (TextView) view.findViewById(R.id.tvCam);
		c = (TextView) view.findViewById(R.id.tvC);
		xh = (TextView) view.findViewById(R.id.tvXH);
		yh = (TextView) view.findViewById(R.id.tvYH);
		ort = (TextView) view.findViewById(R.id.tvORT);
		f1 = (TextView) view.findViewById(R.id.tvF1);
		f2 = (TextView) view.findViewById(R.id.tvF2);
		p1 = (TextView) view.findViewById(R.id.tvP1);
		p2 = (TextView) view.findViewById(R.id.tvP2);
	}
	
	@Override
	public void setTVText(String... params)
	{
		this.cam.setText(params[0]);
		this.c.setText(params[1]);
		this.xh.setText(params[2]);
		this.yh.setText(params[3]);
		this.ort.setText(params[4]);
		this.f1.setText(params[5]);
		this.f2.setText(params[6]);
		this.p1.setText(params[7]);
		this.p2.setText(params[8]);
	}
}

